import { AxiosPromise } from 'axios';
import request from '@/utils/request';

export function reportLabelsList(query: any): AxiosPromise<any[]> {
  return request({
    url: '/wiki/reportLabels/list',
    method: 'get',
    params: query
  });
}

export function reportLabelsDetail(id: string): AxiosPromise<any> {
  return request({
    url: '/wiki/reportLabels/' + id,
    method: 'get'
  });
}

export function saveReportLabels(data: any): AxiosPromise<any> {
  return request({
    url: '/wiki/reportLabels',
    method: 'post',
    data
  });
}

export function updateReportLabels(data: any): AxiosPromise<any> {
  return request({
    url: '/wiki/reportLabels',
    method: 'put',
    data
  });
}

export function deleteReportLabels(id: string): AxiosPromise<any> {
  return request({
    url: '/wiki/reportLabels/' + id,
    method: 'delete'
  });
}
